<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/product.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<div>
				<form method="get">
					<input name="open" type="hidden" value="{$get.open}" />
					<input name="action" type="hidden" value="show" />
					<input name="go" type="hidden" value="query" />
					<input name='info' type="text" style="width:250px" value="{$get.info|default:'账号/姓名/昵称/编号/公司'}" onfocus="Pro_query(this,'账号/姓名/昵称/编号/公司')" />
					<input type="submit" value="查询" class="submit" />
				</form>
				{if $get.go == 'query'}<a style="color:#093" href="{write_url url=$thisurl DEL='go,page,ORDER,info'}">返回列表</a>{/if}
			</div>
			<ul>
				{if $BTP[$get.open].add}<li><a href="{write_url url=$thisurl action='add' DEL='ALL'}" {CLASS_COLOR add=$get.action CLASS='this'}>添加代理</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl action='show' DEL='ALL'}" {CLASS_COLOR show=$get.action CLASS='this'}>代理管理</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="show">
			<form action="{write_url url=$thisurl action='del'}" method="post">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr>
						<th width="5%">选择</th>
						<th>代理账号</th>
						<th>真实姓名</th>
						<th>昵称</th>
						<th>编号</th>
						<th>公司</th>
						<th>代理组</th>
						<th>最后登录时间</th>
						<th>代理前台</th>
						<th width="5%">日志</th>
						<th width="5%">财务</th>
						<th width="5%">附件</th>
						<th width="5%">通讯</th>
						<th width="5%">编辑</th>
						<th width="5%">删除</th>
					</tr>
					{foreach item=pso from=$list_text}
					<tr align="center">
						<td>{if $BTP[$get.open].del}<input type="checkbox" name="id[]" value="{$pso.id}" />{/if}</td>
						<td align="left">{brite_spot query =$get.info str=$pso.account}</td>
						<td align="left">{brite_spot query =$get.info str=$pso.name}</td>
						<td align="left">{brite_spot query =$get.info str=$pso.nickname}</td>
						<td>{brite_spot query =$get.info str=$pso.number}</td>
						<td align="left">{brite_spot query =$get.info str=$pso.company_name}</td>
						<td align="left">{$pso.group}</td>
						<td>{$pso.login_time|date_format:"%Y-%m-%d %H:%M:%S"}</td><!-- ../diamind/home-search-{$pso.id}-{$pso.number}.html -->
						<td><a href="../diamind/?open=home&action=search&page=1&token={$pso.id}&nid={$pso.number}" target="_blank">进入</a></td>
						<td class="action">{if $BTP[$get.open].log}<a href="{write_url url=$thisurl action='log' id=$pso.id}" class="act_5_7" title="日志"></a>{/if}</td>
						<td class="action">{if $BTP[$get.open].money}<a href="{write_url url=$thisurl action='money' id=$pso.id}" class="act_3_11" title="财务"></a>{/if}</td>
						<td class="action">{if $BTP[$get.open].proxy_appx_show}<a href="{write_url url=$thisurl action='proxy_appx_show' id=$pso.id}" class="act_1_8" title="附件"></a>{/if}</td>
						<td class="action">{if $BTP[$get.open].proxy_nab}<a href="{write_url url=$thisurl action='proxy_nab' id=$pso.id}" class="act_4_12" title="代理通讯录"></a>{/if}</td>
						<td class="action">{if $BTP[$get.open].edit}<a href="{write_url url=$thisurl action='edit' id=$pso.id}" class="act_5_8" title="编辑"></a>{/if}</td>
						<td class="action">{if $BTP[$get.open].del}<a href="{write_url url=$thisurl action='del' id=$pso.id}" class="act_1_5" title="删除"></a>{/if}</td>
					</tr>
					{foreachelse}
					<tr><td colspan="14" class="else">当前没有代理 , <a href="{write_url url=$thisurl action='add' DEL='ALL'}">点击添加代理</a></td></tr>
					{/foreach}
				</table>
				<div class="select">
				{if $BTP[$get.open].del}
					选择：
					<input value="全部选择" type="button" onclick="select_all('id[]');" />
					<input value="全部取消" type="button" onclick="select_out('id[]');" />
					<input value="反向选择" type="button" onclick="select_agt('id[]');" />
					<input value="删除选择" type="button" onclick="select_del('id[]' , this);" />
				{/if}
				{if $BTP.proxy_sms.add}<input value="代理群发手机短信" type="button" onclick="add_cart('id[]',this,'{write_url open='proxy_sms' action='add'}')" />{/if}
				</div>
			</form>
			{if $list_page.Record > 0}
			<div class="page">
				每页
				<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='PNS'}')">
					<option value="PNS=10" {selected val=$get.PNS str='10'}>10</option>
					<option value="PNS=25" {selected val=$get.PNS str='25'}>25</option>
					<option value="PNS=50" {selected val=$get.PNS str='50'}>50</option>
					<option value="PNS=100" {selected val=$get.PNS str='100'}>100</option>
				</select>
				条数据
				当前第{$list_page.NowPage}页 / 共{$list_page.count}页
				{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page='1'}">首页</a>{else}首页{/if}
				{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page=$list_page.up}">上一页</a>{else}上一页{/if}
				{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.down}">下一页</a>{else}下一页{/if}
				{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.count}">尾页</a>{else}尾页{/if}
				至 <input type="text" value="{$list_page.NowPage}" onkeydown="go_page(event , this , '{$thisurl}')" /> 页
				排序:
				<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='ORDER'}')">
					<option value="ORDER=time_UP" {selected val=$get.ORDER str='time_UP'}>按 最后登录时间 (↑) 排序</option>
					<option value="ORDER=time_Dn" {selected val=$get.ORDER str='time_Dn'}>按 最后登录时间 (↓) 排序</option>
					<option value="ORDER=nber_UP" {selected val=$get.ORDER str='nber_UP'}>按 编号 (↑) 排序</option>
					<option value="ORDER=nber_Dn" {selected val=$get.ORDER str='nber_Dn'}>按 编号 (↓) 排序</option>
				</select>
			</div>
			{/if}
	</div>		
	</div>
	<b class="clear"></b>
</div>
</body>
</html>